var e = getApp();

Page({
    data: {},
    onLoad: function(e) {},
    gomember: function() {
        wx.navigateTo({
            url: "/packageE/energy/powerMember/powerMember"
        });
    },
    goStore: function() {
        wx.navigateTo({
            url: "/packageE/energy/powerStore/powerStore"
        });
    },
    goFacility: function() {
        wx.navigateTo({
            url: "/packageE/energy/powerEquipment/powerEquipment"
        });
    },
    withdraw: function() {
        wx.reLaunch({
            url: "/packageG/pages/member/extension/extension"
        });
    },
    onReady: function() {},
    onShow: function() {
        this.getdata();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        var n = e.getNetAddresss("plugin.energy-cabin.frontend.dealer-terminal.index"), o = this;
        e._getNetWork({
            url: n,
            success: function(e) {
                var n = e.data;
                1 == n.result && (console.log(n), o.setData({
                    member: n.data.member,
                    total_amount: n.data.total_amount
                }));
            },
            fail: function(e) {
                console.log(e);
            }
        });
    }
});